package model;

public class User implements Comparable<User> {

	public String User_Name;
	public char[] Password;
	public String Stringpassword;

	public User(String user_Name, String stringpassword) {
		super();
		User_Name = user_Name;
		Stringpassword = stringpassword;
		
		
	}
	
	public User getUser(User u){
		return u;
	}

	public String getUser_Name() {
		return User_Name;
	}

	public void setUser_Name(String user_Name) {
		User_Name = user_Name;
	}

	public char[] getPassword() {
		return Password;
	}
	public String getstringpassword(){
		return Stringpassword;
	}

	public void setPassword(char[] password) {
		Password = password;
	}

	public String getStringpassword() {
		return Stringpassword;
	}

	public String setStringpassword(String stringpassword) {
		return stringpassword;
	}

	public String toString() {
		return User_Name;
	}

	// CompareTo for User on User_Name
	public int compareTo(User u) {
		return User_Name.compareToIgnoreCase(u.getUser_Name());
	}

}
